<?php
/**
 * 注册短信接口校验类
 * User: 苏近之
 * Date: 2019-03-23
 * Time: 20:10
 */

namespace app\user\validator;

use app\common\base\ApiValidator;

class SmsMessageRegister extends ApiValidator
{
    protected $rule = [
      'phone' => 'require|mobile'
    ];

    protected $message = [
        'phone.require' => '手机号必填',
        'phone.mobile' => '手机号格式不正确',
    ];
}